#ifndef ATM_H
#define ATM_H

#include "account.h"
#include <ios>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <iostream>
#include <fstream>
#include <string>
class ATM
{
    private:
        account NowAccount;

    public:
        std::string getTime();      //获取当前系统时间
        int getBalance();
        int withdraw(int money);
        bool deposit(int money);
        int transfer(std::string account,int money);
        bool setPassword(std::string newPassword);
        bool SetAccountID(std::string accountid);
        int IfTrue(std::string password);
        bool IfLocked();
        bool save();
        std::vector<std::string> DiviseString5(std::string a);  //将时间分成五个string
};

#endif
